package fnord.jovian.tango;

import java.util.Vector;

import fnord.jovian.TheBoard;
import fnord.jovian.TheField;
import fnord.jovian.tango.TheAssemblyLayout.TheAssemblyOrientation;

public class TheMapPanel extends ThePanel {
	
	private TheMap _map;
	
	public TheMapPanel(TheBoard board) {
		super(0,0,220,280,board);
		TheAssemblyLayout layout = new TheAssemblyLayout(TheAssemblyOrientation.VERTICAL,10);
		setTheLayout(layout);
		_map = new TheMap(board);
		addComponent(_map);
		addComponent(new TheText("Board Map", 13, 200, 50, true, true));
	}
	
	public void setupMap(Vector<TheCardTree> miniTrees, TheField field, int player, int current) {
		_map.setMiniTrees(miniTrees, field, player, current);
	}
	
	public void setCurrent(int current) {
		_map.setCurrent(current, true);
	}

}
